package xin.ssm.jxc.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class GoodsSales {
    private Integer salesid;

    private Integer salesnum;

    private BigDecimal salessum;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp salesdate;

    private String userloginname;

    private String employeecode;

    private Integer goodsid;

    private String depotcode;

    private String salesstatus;
    
    private Users user;
    
    private Employees employee;
    
    private Goods2 goods;
    
    private Depots depot;

    public Integer getSalesid() {
        return salesid;
    }

    public void setSalesid(Integer salesid) {
        this.salesid = salesid;
    }

    public Integer getSalesnum() {
        return salesnum;
    }

    public void setSalesnum(Integer salesnum) {
        this.salesnum = salesnum;
    }

    public BigDecimal getSalessum() {
        return salessum;
    }

    public void setSalessum(BigDecimal salessum) {
        this.salessum = salessum;
    }

    public Timestamp getSalesdate() {
        return salesdate;
    }

    public void setSalesdate(Timestamp salesdate) {
        this.salesdate = salesdate;
    }

    public String getUserloginname() {
        return userloginname;
    }

    public void setUserloginname(String userloginname) {
        this.userloginname = userloginname == null ? null : userloginname.trim();
    }

    public String getEmployeecode() {
        return employeecode;
    }

    public void setEmployeecode(String employeecode) {
        this.employeecode = employeecode == null ? null : employeecode.trim();
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public String getDepotcode() {
        return depotcode;
    }

    public void setDepotcode(String depotcode) {
        this.depotcode = depotcode == null ? null : depotcode.trim();
    }

    public String getSalesstatus() {
        return salesstatus;
    }

    public void setSalesstatus(String salesstatus) {
        this.salesstatus = salesstatus == null ? null : salesstatus.trim();
    }

	/**
	 * @return the user
	 */
	public Users getUser() {
		return user;
	}
	public String getUsername() {
		return user.getUsername();
	}
	/**
	 * @param user the user to set
	 */
	public void setUser(Users user) {
		this.user = user;
	}

	/**
	 * @return the employee
	 */
	public Employees getEmployee() {
		return employee;
	}
	public String getEmployeename() {
		return employee.getEmployeename();
	}
	/**
	 * @param employee the employee to set
	 */
	public void setEmployee(Employees employee) {
		this.employee = employee;
	}

	/**
	 * @return the goods
	 */
	public Goods2 getGoods() {
		return goods;
	}
	public String getGoodsname() {
		return goods.getGoodsname();
	}
	/**
	 * @param goods the goods to set
	 */
	public void setGoods(Goods2 goods) {
		this.goods = goods;
	}

	/**
	 * @return the depot
	 */
	public Depots getDepot() {
		return depot;
	}
	public String getDepotname() {
		return depot.getDepotname();
	}
	/**
	 * @param depot the depot to set
	 */
	public void setDepot(Depots depot) {
		this.depot = depot;
	}
}